get logout working in thin-client mode
fixes for new remote stuff