add shopt check to avoid noise