improve findChain a little bit, maybe