terminal switching implemented, being tested