added apache for switching