handle empty querystring