not working version - commit before too many changes are done. switching to dictionary based joint sb fitter