fix bugs in dt compiler; trying to deploy on tomcat