update logging facilities
fixes for logging facilities update
more fixes for logging facilities update
simplify scaling code