use schema to unpack itself