removed kludgy content length workaround