added function to detect duplicate state machine requests