added timeout, AGAIN.
exception and error handling in streamhandler
converted anagramer to use new stream handler