added minify middleware