seperated main class from query parser