modfied setRootDocAutomatically to work async

was causing cpu to block for along time on big projects