fix reference to locs in doc functionality