refactor multiple resolve as, not gonna work the way I was thinking before. new build, adding example