make directories instead of assuming existence