custom fds to stdio