debugMode properly handled

debugmode asked on prompt rather than needing code change