added flag to check clientconnection activity