upload main.rb