fixes reducto, factorize history