imlement the handler
debug the text