split simplify into library