starting on thrift generation scripts, will need more work.