race condition fixed by loading libs from plugin