adapting to apache.