connection handler class