improved document semantics using Ecto for inspiration