override printf/fprintf