move wait_and_stream to ast_wait_and_stream() because equivalent