extra checks for getParameter