fixing path resolution