Shim for restify