added enable/disable logging on modules