updating API to call Core