modify document loader thread