clean and prepare to tmux