updated for 1.7.9

updated for 1.7.9/trunk; warning: breaks compatibility with 1.7.8 and
added api_version