fixed logging issue with proliferating handlers