adding code for independent viability uploads