added wtc stuff
added some logging