use restify and connect together; refs #1