added use of Fcntl