Improve ignore file
Add error callback option