liblist : change the end method and the IncCurrent/DecCurrentMethod, it's simple to iterate through a list
adapt opt to liblist