transplate to cordova