more code duplication for having a separate update version for cordova