fix unresponsive repl on text_transfer (close: #159)
+ some minor bugfixes