move hcat client instantiation to before class