basic relations between hooks and repos working