add content-length support, should be part of metadata soon