added query string management functions