ob operations are now in a separate thread

Some thread safety fixes here and there