integrating asynchronous calls