change wrapping functionality to match new gremlin-node