few Apache functions