changed server to real threads

implementing logout committing now