update to ruby 2.0 and improve file upload