required api.rb to fix the loading issue