move insertDocs to in.rb