got this working with restify (as far as I can tell anyway)
restify fixes