added code for apache stats