* improved failure handle
+ add sort support
+ add stop iteration condition
+ add directory support