fixing callbacks in async block