updated to latest state_machine gem