new phonegap calls have error, trying to fix it (attempt 1)