bug fixes for grid exploration