improved command loader API