some cleanup of references block