cleanup for mdl char publish