cleanup merlin