modified clientHandler constructor