add gitignore
use event insted of name
fix bug in auto delete via times, add emit test