modified build script and delete resources