pub rebuild