path normalization solution

first version of path normalization solution