some refactoring on the cli runner and fixed getValue command