add support for importing multi level keys