re-instated file io