added some phonegap stuff