modify upstream check's macro