implemented groupmanager, little refactoring clients files