rename and logger bug fix