fixed to obey the cordova plugin spec