fix to enable PaperTrail with env var