implemented state machine, defined backup & install logic