add cordova folder into the project, fix the core bugs