Prep for api