extracted queue and task operation to protected function for inheritance purpose