adds path correction