adds perf, fixes mkdir_p