add log service and some logic change