Apache-independent support classes and function