prepare client-handler relationship