Also, it seems like you do this check a couple of times, may be you should do all this mac checking *inside* `import_recovery_document`