suppress warnings about the use of smartmatch