add box2d cold startup
refactor and fix lua warm startup