prepare independent indexes #118
implement priority comparison, close #130