barely working
clean up debug console.log