[FIX] adapt to value_date while still supporting old versions