local internal api calls