fix plot, add back mkdir to pfabric.py