common hooks, settings moved to common.el