modified init.el to add error handling