create output path if it doesn't exist