[IMP] add the posibility to update the state