patched to allow loading backups from other environments