alter flow to be asynchronous