may have missed commenting some console logs for local debugging