working code for one ecoregion
started a simplification
working refactor