this should fix the file descriptor leak