refactor of merging & minify capabilities (in progress)