move node code into own file