add "addlastlist" method
add isMain method