demo file working on test output
modified to use file name and offset