doc ref cleanup