fix for emacs 23.  not the best code