make sure legacy var is always set