added comments about logging