more logging and cmdargs