made compatible with Apache