adapts paths