process special command better