simplified main
removed test for the text plugin