added bw file reader