implement basic I/O interface.