add broken mouse support, fix text rendering