exposed ResourceModel, fixed some email config