adjusted the tomcat cookbook