adding some base code for tty communication / listing
Needs to be debugged though