fix init->up->stop, refactor conditions

Signed-off-by: Barry Allard <barry.allard@gmail.com>