simulating terminal