lots of changes to get_isoch_params function