refactoring active_crm/scheduled