added apache check