updated logging system.