updated to support variable localization setup time