converted to Restify from Express