added support for older apache version