work on the logging function, trying to incorporate cli-table