add encoding and fix path;