changed the way of checking install state