added chanprev to KeyPairList
a little code formatting