managed to get it somewhat working but still very crashy