gui and cmd protocol now working.