code refactor; option to rename files