handle query string parameters a little more nicely