add log package
some changes