Working up legacy support for seqmodel