rename and -w command line option for window mode