macro fixes to paper
add mkdirs to avoid rpm errors