added back cordova code