added some traces until debugging works