api.provides outside the api method