cleaned up native module a bit now that it looks like we can do more on the node side