add core and loader