make tomcat context consistent