added callback for requesting a text