Parameterized class and better handling of apache