add duration to config template