streamline the api