add debugging output to is_alive check