preliminary state file support. trying out another way to canonicalize file
names