refactor functional executor I/O