reverted to original wrapping method for node-style functions