NF: added more provenance tracking to logan_byhand