fix local package deprecation and rebuild