detector seems to work.. (some allocation problems. fuck++. youre evil)