refactor status message in cli mode