more in line with cordova plugin guide