add prevent module logging code