add env support for tomcat