rkt: refactor fetch