ios plugin tasks refactor