renamed client to farmer