1) add pause feature  2) fix key issue in removePeer()