moved is_cli