fixed enabled and disabled messages for logging in all cases