fixes for the upload system.