added was_homed member variable