add order number to max entropy; fix some bug in extract answers