fixing build script order