updated how iron builds and uploads + added upgrade function