use better messages on binary stdio