implement module hook
update expire_time and fix comparsion