improve initialization of relative path