client accept does not work split into a own class