move input thread to deprecated code
fix segfault