cleaning up ml_lit code