merge the api