refactor steps - delete not used commands and eliminate source code duplication