changes to make io work