more work on the phonegap side of things