create files for state machine