fixed cordova stuff