rawdata ignored
file opening handled