for QGIS 2.0