fixing phonegap stuff