added CLI reading