added `autoDispose` as a new config option.