for working with Cordova