more things around returning docs