* improve state machine import function