fine-tuning for phonegap