rename debug() to debugLog()