quick and dirty wavStdin reader
build index now supports piping