fix for 2.4.x + travis tests against 2.4.x, 2.6.x and 2.7.x