added support for fds