fix phonegap attempt 2