augment customfunc in build script instead replace it.