making  cli work