base plugin from 1.0.7 tag