small changes and alteration of upload script