integrate import state on the framework and propagate changes to all the code