created arg recursion_count to async_resolve and many other to avoid infinite loops