rename and change permission