declare client as dynamic to avoid warnings