added additional checks to run initialization for new variables if not set