add debug&& in front of all console.log