better tmux updating logic