fix a bug + add minify.sh file for minifying/building extensions