put connection/request to module and include it in client