bad reference to client factory