add log reporter & fix some bugs