Improve api, now wont run APICORE as a mod