debug cli and logic