new way of setting client