read in binary
better handling of strtok