adding in support for the ready queue