if outputpath directory doesn't exist, create that