add threading &fixed reply bugs