[feature] realize initial/shutdown/state change function