try to add logging then add log thread