use time.Duration for config