add -p to mkdir calls