add some code for read from seeds.