changed to use installed StatMachine package