terminal logic

quick test