more work on terminal