added delay option via env var