ADDED: export user key to file and import key