improve script after build