refactor node-specific code out to new repo