Revert "io stub removed"

This reverts commit 813597cfdbde37a8e76b18802cdc2a31d20e333c.