add bgloop to server; fix docupdate interference with uid