make sure to distinguish between TypeError and InvalidPrefixError; one is resumable and one is not