changed it to use state.highstate instead of executing individual state