add cordova support
begin work on batch method