resolve the name and the path correctly