updated comment threshold to use env var