setup fitting infrastructure