move relative path to utility function