normalize the i/o code
resolve import line merge conflict