swapped out console.log using npm:debug, closed #22