make default duration configurable