modified dct from apache