updated upload.rb, compile.rb