add cordova factory