added option to run in tomcat