got both the terminal and the gui to work, flag doesnt work though