added more apache functionality