fixed to work on apache 2.4