reg: use logger instead of print