added script to check file descriptor