Simplify async code
Upgrade connect dependency