add gitignore
fixes for streamhandler
fix tests, streamhandler