better cleaning up of text sources