state_machine added on resource model