controller setup