starting to code up MR-fetching logic