clean up for emacs