modify for phonegap build