unify apache handlers