experimental storage of last used port in GUI