change console.logs to debugs