upload files script fix 2