fixing the path resolution