implement parseReply to return repy code