[MERGE] forward port of branch 7.0 up to cd31cbf556cc11950ce6188041cf5c2fcd89e0f8