added priority and status History queries