finished moving gremlin script construction from client to server