session management and better tmux support