added login auth packet and multiple byte manipulation methods