get the path correct