debug is now conditional