fixed some issues to be able to launch phonegap version