added some i/o