adding in API stuff