added sanity check for unknown query keys