running with node | code working (mostly)