"debug mode" fixed