don't upload emacs backup files, remove some unused code