started porting over code from CI3 forumtilla to better suit it

it dont work right now