updated for node 0.9.8 - note that file uploads probably broken