rewrote client to depend on jersey client not httpc