should do a -p to ensure dir exists