create cores and load resources inside plugin