the mol writer should take const mols