client handler set up