added main controller and tools