export to file works, but import needs work