fix #70 , retention task, and add new option in configuration