add baha home hook and bug fix