consolidate printonly check for #1526