add cli functionality