updated checkClients to latest working version