lifted InputStream into IO