debugMode should be false by default