fetch doc properly