use env var for duration