moved build script to separate file