added sanity checks for URL params