phonegap stuff added