adapt relative path