fixed reg function , add huskies lock.