adding support for priorized and initializaiton queries
fix typo