switch from exogenous actions to exogenous functions (of state)