lots more script changes. still working on uploads page.