add function to get stored record
add error checking for unmatched records
ignore log files