adapt path