fixed bug and add log folder