improved generation of async interfaces