dump io to file