condit in server loop extendet