fixing defer extensions and http headers