working X tracking, still some bugs tho