added document.rb to requires