changed Debug static methods to instance methods