cleanup for publication