added support for more stt rules (internal + anonymous transitions)