so after an insane amount of trial and error i found my problem. xscreen (2), it seems to mess with the code and i have tried a ton of things so uh whats the solution to this problem, why is xscreen messing with it and what should i do.. anyways its like 4am so goodnight lol (finally found the prob, it only took a lot of hours) thanks again!