added -p to mkdir to fix enoying error message