bind node internals to node function