make backward compatible with apache 2.2