add service for getting model type with definition