build script thanks to @chadouming