detect autogen