less code for path normalization