added main control