diff --git a/README.md b/README.md
new file mode 100644
index 0000000..55b7c1a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,22 @@
+
+
+# BEComTweaks/server-backend
+
+![Commit Activity](https://img.shields.io/github/commit-activity/w/BEComTweaks/server-backend?style=for-the-badge&label=Commits&color=purple)
+![GitHub repo size](https://img.shields.io/github/repo-size/BEComTweaks/server-backend?style=for-the-badge&label=Size&color=pink)
+
+
+Server Backend for the website
+
+To clone
+```cmd
+git clone https://github.com/BEComTweaks/server-backend --recursive
+```
+ Recursive is neccessary due to submodules
+
+To start server
+```cmd
+node server.js
+```
+ On linux and mac run this command with sudo or a program like authbind to allow usage of ports below 1024
+Then just go to the local website and download your packs! It will use localhost instead of the actual server ip
diff --git a/server.js b/server.js
index 87899c8..5a9798a 100644
--- a/server.js
+++ b/server.js
@@ -124,7 +124,8 @@ function listOfFromDirectories(selectedPacks, type) {
for (let category in selPacks) {
if (category !== "raw") {
- const ctopic = loadJson(`${cdir(type)}/jsons/packs/${category.replace(' ', '_').replace(' ', '_').toLowerCase()}.json`);
+ const nameToJson = loadJson(`${cdir(type)}/jsons/others/name_to_json.json`);
+ const ctopic = loadJson(`${cdir(type)}/jsons/packs/${nameToJson[category]}`);
selPacks[category].packs.forEach((pack, index) => {
let compatible = false;
if (addedPacks.includes(ctopic.packs[selPacks[category].index[index]].pack_id)) {
@@ -176,8 +177,6 @@ function mainCopyFile(fromDir) {
} else if (item.endsWith('.lang')) {
const fromLang = fs.readFileSync(path.join(fromDir, item), 'utf-8');
fs.appendFileSync(targetPath, `\n${fromLang}`);
- } else {
- console.log(`${path.join(fromDir, item)} cannot be copied to ${targetPath} as it cannot be merged`);
}
} else {
fs.copyFileSync(path.join(fromDir, item), targetPath);