issue 19/20 supporting output to json and csv