refactoring cli commands