remove exception and fix minify methods