added is alive check