fix - create dir before using it