made this more like a core mod other than just a mod to copy and paste from