this will not work for node versions less than 0.8.21 because of querystring