prepared for phonegap