added main, loads a terminal