simpler cli function