added the alive switch