moving to logging, instead of std out, and added some invocation time args