wip: implement setup handling