changed rubyv
change rubygems to http
change 2 queries into one