minor tweaks to make emacs server work