MBH: setting up for saving and uploading files