refactoring command related configuration