fixed bug in whenready, renamed to whenreadyR, made new whenready