using connections is depreciated in node v0.10.0, fixes #3