program using cli control