bugfix upload script