use existing API for content length