added logfacility handling