added some more family management code