some better error/debug messages