new IO routine to dump data