add handling for -m/--maximize option