moved GetQueryString method out to factory- namespace