correctly specify whether sanity check should be done for an extension or not