refactor anz.client to work with eionet cas client