add log support and modify the dependency