constructor now should auto-export and open fds