beginning of work to create priority-first scheduler