uploading state machine diagram