fixed messy upload