hackish and incomplete way to check against recursive functions