add log_typer to some functions