added a setting to control task expiration