main: use one client instance all throughout instead of creating many of them