made slap use the new TextGenerator class