fixed issue where obi_upgrade would overwrite variables