repaced obsolete FromAsyncPattern call