rewriting in restify