sanity bugs+AES local