r867: fixed a few bugs; added ALT hits to XA