more tweaks for phonegap