ADD: setup algorithm, preliminary