refactoring status commands