very quick&dirty port to Node v.0.11 - no work has been done to maintain backwards compatability