say() function doesn't exist, use echo instead
updated test to see if refchk needs to be displayed