added logging to all plugin programs