what does `isLegacyMode()` do again? should these parameters be needed when not in legacy mode?