updated documents loader