added find_csr and conseensus functionality