path is correct, but log_p is wrong
yet another file for code
more slow progress