fix path resolution