fix handle preaccept and accept reply
fix conflicts and add prepareProcess