add alternative hack for async printing and getting input