return the right context, for the API to use