clients is now a function, not a hash