adding entry point
adapt to latest changes in Emacs