implement general path sampling integration