Got appdomain working
type cleanup
better logging