detect cycle while searching for entry methods