merge debug.coffee into main.coffee