working on my terminal emulation