remove full path with local references, doy