rename and rebuild