little more checking on contents of the query string