added apache checking