unify read_blocks and invetory interface