refactored get_current_cell; added get_cell_ranges et al