tried to adapt multi client