adding isAlive

see #308