add check for directory "new_name", create if necessary