fix && add log method