fixed mouse and some simple 'session' management