sm.go -> states.go