make getQueryComponents work with form data