fix report error. Lazy load optimization #7. Refactor server