fixes for apache