fixed stack overflow and ignore file