open files and thread count