add window mode, rm options