ok fixed, apparently interrupts are a better way of doing it than spinlocks/related tingies, not sure why the other way didnt work tho