added function to tune apache