make idGen and client public in activity worker