logging works with testing, now
updated example to show off debug logging