adding threads and kerberos.. the begining