modified main.py and fixed up queryparser