try to make all directories first