a failed attempt at readline; ping-pong