add documentup
properly handle a single array of objects