more phonegap fixes