improving the way we enable/disable logs