changed order of state execution to ensure presence of grain
troubleshooting