merge with api