move postgraph into thread model
structure data model