added mobile cordova support