work on stdilib I/O