change minify method and add resume