made entire plugin architecture thread safe