fix grid iterator, add grid constructor from saved data