merge data returned from callback into response