adding the API stuff