upload files script fix 6