cleaning up code in apache2.rb