tried to make it compatible with x11. lets see