worked on loginhandshake. not finished yet