update build script to patch data as well