changes for 1.7.9

This changes make the plugin work with 1.7.9