mock rebuild