pull out model management functionality