added querybuilder through criteria method
added queue management