adding in phonegap stuff