add a check argument for integrity checks