added some nascent logging functionality