the correct way to accept client