modified prebuild script