added CLI parsing and functions called by CLI parser