add document
add return json and xml support