added IO capabilities

The IO modifications should be here.