fixed apache issues