moved client_manager into its own class in the module __init__