the asyn server is waited to be finished