added persistent logging