fixed setup and sanity_checks