small modify for libetpan