fixed up the upload file option and the recursion issue with the settings function on the plugins