started working on remote login, ran into thread issues