move base monadio of reader stack into connection module