add console input thread