latest version  sanity check imporved