more debuging on upload script