rename and add an extension