make debugMode public