only a few minor issues left with text rendering