move custom code to user.el