fixing phonegap desktop problems and hopefully PZ ish