had to put require net/http in environment.rb b/c it was not working in production for json REST parse