changed for patched sage