refined cli, ability to output data into file