Terminal sessions

yeah it was just a moving existing code into a separate method, `if` can go it seems.