debug too many open files bug