refactor apache2