better handling of tmux sessions