added basic CLI functionality