finish basic implementation of the first api: transitions/to-ready