okaaaay i worked out how to do bi-directional IO: