modified do_open. make windows to open in a session. TODO: execute ssh on each windows.