node module emulation