add state.sls function and custom pillar