updated async example to new syntax and fixed bug with empty first lines