added stuff to run trilegal with varying sfh coming from match