fix upper version limit
updates for 4.0