added cobra model and code to make json for builder