rename and clean top directory