small fix for serialization..and fixing starting in tomcat..