addressed #3, but cursor placement is still not pixel perfect