added document support to profile.rb