extracted a minifier class