1. fix some pull error
1. support run in tomcat