don't hard-code dbg, but use DevelopmentMode from Globals