add cli and debug