dealt with encoding utf8 and rename of main script