models and settings hooks