refactor cli and create new task_manager