change key import to be more forgiving