interface improvements

added method in clientwrapper to check whether the client is connected
or not